package data.passingData;

import java.util.ArrayList;
import java.util.List;

public class POSEditOrderItem {
	private long a;
	private double discount;
	private long id;
	private String item;
	private String title;
	private double price;
	private String tax;
	private boolean s;
	private long customId;
	
	public long getA() {
		return a;
	}
	public void setA(long a) {
		this.a = a;
	}
	public double getDiscount() {
		return discount;
	}
	public void setDiscount(double discount) {
		this.discount = discount;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getItem() {
		return item;
	}
	public void setItem(String item) {
		this.item = item;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getTax() {
		return tax;
	}
	public void setTax(String tax) {
		this.tax = tax;
	}
	public List<Long> getTaxList(){
		List<Long> taxlist = new ArrayList<Long>();
		if(tax==null || tax.equals("")) return taxlist;
		String[] TaxList = tax.split(",");
		if(TaxList.length>0){
			for(int i=0;i<TaxList.length;i++)
				taxlist.add(Long.parseLong(TaxList[i]));
		}
		return taxlist;
	}
	public boolean isS() {
		return s;
	}
	public void setS(boolean s) {
		this.s = s;
	}
	public long getCustomId() {
		return customId;
	}
	public void setCustomId(long customId) {
		this.customId = customId;
	}
}
